﻿@typeparam TValue

@inherits BaseInputBlock<TValue>

@namespace FluentCMS.Web.UI.Components

@if (Visible)
{
    <FormField Cols="Cols" Dense="@Dense" Id="@Id" Hint="@Hint" Label="@Label" LabelFragment="@LabelFragment" Required="@Required">
        <input @attributes="AdditionalAttributes"
               class="@this.GetClasses()"
               disabled="@Disabled"
               id="@Id"
               name="@NameAttributeValue"
               placeholder="@Placeholder"
               readonly="@Readonly"
               type="@_typeAttributeValue"
               value="@CurrentValueAsString"
               @onchange="EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString)" />
    </FormField>
}
